GtkFileChooser: Don't fill location_entry if we just populated the file list
authorVolker Sobek <reklov@live.com>
Thu, 12 Dec 2013 23:41:00 +0000 (17:41 -0600)
committerFederico Mena Quintero <federico@gnome.org>
Thu, 12 Dec 2013 23:42:10 +0000 (17:42 -0600)
commit70eb35d5696030271a0c76f85b705831fa6405de
tree9330b66d7be9a72390376bd2d79076bbbe78002c
parent7ab7a262c1a7c52cdfabf1c27c6f90e3ee1943b2
GtkFileChooser: Don't fill location_entry if we just populated the file list

Only fill the location entry with the file name of the tree view's
selected file when the selection was done by the user.

When the file chooser's action is GTK_FILE_CHOOSER_ACTION_OPEN, it
selects the first file in the tree view once loading has finished. For
this case we don't want it to insert the file name in the location
entry, as it hinders efficient navigation using the location entry. To
achieve this, use a priv flag to keep track of whether the
selection-changed signal was caused by the file chooser itself.

https://bugzilla.gnome.org/show_bug.cgi?id=386569
gtk/gtkfilechooserdefault.c